nlp_architect.api

class nlp_architect.api.abstract_api.AbstractApi[source]

Abstract class for API’s to the server

inference(doc)[source]
load_model()[source]
class nlp_architect.api.bist_parser_api.BistParserApi[source]

Bist Parser API

inference(doc)[source]

Parse according to SpacyBISTParser’s model

Parameters:doc (str) – the doc str
Returns:the parser’s response hosted in CoreNLPDoc object
Return type:CoreNLPDoc
load_model()[source]

Load SpacyBISTParser model

class nlp_architect.api.ner_api.NerApi(prompt=True)[source]

NER model API

inference(doc)[source]
load_model()[source]
model_dir = '/Users/pizsak/nlp-architect/cache/ner-pretrained'
pretrained_model = '/Users/pizsak/nlp-architect/cache/ner-pretrained/model_v4.h5'
pretrained_model_info = '/Users/pizsak/nlp-architect/cache/ner-pretrained/model_info_v4.dat'
static pretty_print(text, tags)[source]
process_text(text)[source]
vectorize(doc, vocab, char_vocab)[source]